package de.koller.gravity.mech.particle.render;

import de.koller.gravity.mech.particle.Particle;
import de.koller.gravity.mech.particle.ParticleEngine;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;

public class DottedRenderer implements IParticleRenderer {

	@Override
	public void renderParticle( Particle p, Graphics2D g, ParticleEngine engine ) {
		g.setColor( new Color( p.color, true ) );
		double x = p.position.x;
		double y = p.position.y;
		Ellipse2D e = new Ellipse2D.Double( 
				x - p.size*.5, y - p.size*.5, p.size, p.size );
		g.fill( e );
	}
	
	
	
}
